package com.example.RuanJianKeShe.Bean;

import java.util.Date;

public class Student {
    private int sno;
    private String sname;
    private int sage;
    private String ssex;
    private String telephone;
    private String email;
    private String stukey;
    private Date createTime;

    public Student(int sno, String sname, int sage, String ssex, String telephone, String email, String stukey) {
        this.sno = sno;
        this.sname = sname;
        this.sage = sage;
        this.ssex = ssex;
        this.telephone = telephone;
        this.email = email;
        this.stukey = stukey;
        createTime = new Date();
    }

    public Student() {
        createTime = new Date();
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getSage() {
        return sage;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStukey() {
        return stukey;
    }

    public void setStukey(String stukey) {
        this.stukey = stukey;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", sage=" + sage +
                ", ssex='" + ssex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", stukey='" + stukey + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
